﻿using NHibernate.Mapping.ByCode.Conformist;
using MSP.Data.Domain;

namespace MSP.Data.Maps
{
    public class TNextIdMap : ClassMapping<TNextId>
    {
        public TNextIdMap()
        {
            Table("T_NEXT_ID");
            Schema("dbo");
            Lazy(true);
            Property(x => x.NextId, map =>
            {
                map.Column("NEXT_ID");
                map.NotNullable(true);
            });
            Property(x => x.Type, map => map.NotNullable(true));
        }
    }
}
